//
//  QHomeOrderViewModel.h
//  QMCXDriver
//
//  Created by Massimo on 2017/4/13.
//  Copyright © 2017年 Massimo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QHomeOrderTableViewCell.h"

typedef void(^ActionCallback)(void);

@interface QHomeOrderViewModel : NSObject
@property (nonatomic, strong)id order;
@property (nonatomic, assign)BOOL isRecived;
@property (nonatomic, assign)OrderType orderType;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithModel:(id)model;
- (void)modelWith:(QHomeOrderTableViewCell*)cell;

- (UIViewController*)nextViewController;

- (void)setAcceptCallBack:(QHomeOrderAccept)callback;
- (void)setRejectCallBack:(QHomeOrderReject)callback;

@end
